package com.iot.core.util;

import com.j256.simplemagic.ContentInfo;
import com.j256.simplemagic.ContentInfoUtil;

public class ContentTypeUtil {
    public  static  String getMimeType(String fileName){

        ContentInfo info1 = ContentInfoUtil.findExtensionMatch(fileName);
        if(info1==null){
            return "application/octet-stream";
        }
        return  info1.getMimeType();
    }
}
